package com.android.tuanlala.model.group;

import com.android.tuanlala.utils.MyLog;
import com.google.gson.Gson;
import com.zhy.http.okhttp.callback.Callback;

import okhttp3.Response;

/**
 * Created by Administrator on 2017/6/14.
 */

public abstract class MainTab_NavCallback extends Callback<MainTab_Nav> {

    @Override
    public MainTab_Nav parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
        MyLog.e("inest","MainTab_NavCallback="+string);
        MainTab_Nav mainTab_Nav = new Gson().fromJson(string, MainTab_Nav.class);
        return mainTab_Nav;
    }
}
